MousePressed

fun MousePressed(location: Point, locationOnScreen: Point = Point.empty(), button: <Error class: unknown class> = MouseButton.MOUSE_BUTTON_UNSPECIFIED, keyModifiers: KeyModifiers = KeyModifiers(), mouseModifiers: MouseModifiers = MouseModifiers(), clickCount: Int = 0): MousePressed
fun MousePressed(location: Point, locationOnScreen: Point = Point.empty(), button: <Error class: unknown class> = MouseButton.MOUSE_BUTTON_UNSPECIFIED, keyModifiers: KeyModifiers = KeyModifiers(), mouseModifiers: MouseModifiers = MouseModifiers(), clickCount: Int = 0): MousePressed

Creates a new instance of MousePressed with the given parameters.

Since

8.0.0

Parameters

location

The mouse position relative to the bounds of the browser instance.

locationOnScreen

The mouse position relative to the bounds of the screen.

button

The button that was pressed.

keyModifiers

The keyboard modifiers applied.

mouseModifiers

The mouse modifiers applied.

clickCount

The count of consecutive clicks that happened in a short amount of time.